<template>
	<view class="nav fixed bg-fff" :style="styles">
		<view class="cu-bar bg-white">
			<view class="action">
				<text class="cuIcon-locationfill text-gray"></text> 重庆市
			</view>
			<view class="content text-bold">
				MCAKE
			</view>
			<!-- #ifdef H5 -->
				<view class="action text-grey">
					<text class="cuIcon-search"></text>
					<view class="margin-lr-sm">
						<u-line direction="col" length="15" ></u-line>
					</view>
					<text class="cuIcon-sort"></text>
				</view>
			<!-- #endif -->
			
		</view>
	</view>
	
</template>
<!-- add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' '*'; -->
<script>
	export default {
		name:"nav-custom",
		data() {
			return {
				
			};
		},
		computed:{
			styles() {
				let style = 'padding-top:0'
				// #ifdef MP-WEIXIN
					uni.getSystemInfo({
						success: (res) => {
							console.log('系统信息',res);
							let {statusBarHeight} = res
							style = `padding-top:${statusBarHeight}px`
						}
					})
				// #endif
				return style
			}
		}
	}
</script>

<style lang="scss">

</style>